package routers

import (
	"tcsc/controllers/admin"
	"tcsc/controllers/mobile"
	"tcsc/controllers/pc"

	"github.com/astaxie/beego"
)

func init() {
	// dirname := time.Now().Format("2006-01-02 15")
	// dirpath := `./logs/` + dirname
	// err := os.MkdirAll(dirpath, 0777)
	// if err != nil {
	// 	beego.Debug("创建文件夹失败:", err)
	// }
	// beego.SetLogger("file", `{"filename":"`+dirpath+`/beego.log"}`)
	beego.Router("/wx_public_token_get", &admin.WxToken{})
	beego.Router("/img", &admin.ImgsAjax{})
	beego.Router("/wximg", &admin.WximgAjax{})
	beego.Router("/file", &admin.File{})
	beego.Router("/sword_uppic", &admin.SwordUppic{})
	beego.Router("/ckeditor/imageupload", &admin.CkeditorImageupload{})
	beego.Router("/search", &admin.Search{})
	beego.Router("/area_get", &admin.AreaGet{})
	beego.Router("/message", &admin.Message{})
	beego.Router("/message/userinfo", &admin.MessageUserInfo{})
	beego.Router("/testfloat", &admin.TestFloat{})
	beego.Router("/admin/getproduct", &admin.GetProduct{})
	beego.Router("/admin/shopgetproduct", &admin.ShopGetProduct{})
	beego.Router("/product_qrcode", &admin.Qrcode{})
	beego.Router("/attachment", &admin.Attachment{})
	beego.Router("/setproimg", &admin.ProImgWatermark{})
	// beego.Router("/admin/test123", &admin.Test{})
	admin := beego.NewNamespace("/admin",
		//首页
		beego.NSRouter("/clear/cache", &admin.ClearCache{}),
		beego.NSRouter("/login", &admin.Login{}),
		beego.NSRouter("/permission", &admin.Nopermission{}),
		beego.NSRouter("/getavatar", &admin.Getavatar{}),
		beego.NSRouter("/index/index", &admin.Index{}),
		beego.NSRouter("/index/read", &admin.IndexRead{}),
		beego.NSRouter("/index/ad", &admin.IndexAd{}),
		beego.NSRouter("/index/ad_help", &admin.IndexAdHelp{}),
		beego.NSRouter("/index/ad_add", &admin.IndexAdAE{}),
		beego.NSRouter("/index/ad_edit", &admin.IndexAdAE{}),
		beego.NSRouter("/index/keyword", &admin.IndexKeyword{}),
		beego.NSRouter("/index/keyword_add", &admin.IndexKeywordAE{}),
		beego.NSRouter("/index/keyword_edit", &admin.IndexKeywordAE{}),
		beego.NSRouter("/index/feedback", &admin.IndexFeedback{}),
		beego.NSRouter("/index/feedback_add", &admin.IndexFeedbackAE{}),
		beego.NSRouter("/index/feedback_edit", &admin.IndexFeedbackAE{}),
		beego.NSRouter("/index/hotCity", &admin.IndexHotCity{}),
		beego.NSRouter("/index/changeHotCity", &admin.IndexChangeHotCity{}),
		beego.NSRouter("/index/app_push", &admin.IndexAppPush{}),
		beego.NSRouter("/index/app_push_add", &admin.IndexAppPushAdd{}),

		beego.NSRouter("/index/chart", &admin.IndexChart{}),

		//用户管理
		beego.NSRouter("/member/index", &admin.Member{}),
		beego.NSRouter("/member/excel", &admin.MemberExcel{}),
		beego.NSRouter("/member/order", &admin.MemberOrder{}),
		beego.NSRouter("/member/promote", &admin.MemberPromote{}),
		beego.NSRouter("/member/promote_del", &admin.MemberPromoteDel{}),
		beego.NSRouter("/member/promote_list", &admin.MemberPromoteList{}),
		beego.NSRouter("/member/promote_apply", &admin.MemberPromoteApply{}),
		beego.NSRouter("/member/promote_push", &admin.MemberPromotePush{}),
		beego.NSRouter("/member/promote_censoring", &admin.MemberPromoteCensoring{}),
		beego.NSRouter("/member/getcash", &admin.MemberGetCash{}),
		beego.NSRouter("/member/getcash_ok", &admin.MemberGetCashOk{}),
		beego.NSRouter("/member/getcash_push", &admin.MemberGetCashPush{}),
		// beego.NSRouter("/member/add", &admin.MemberAE{}),
		beego.NSRouter("/member/edit", &admin.MemberAE{}),
		beego.NSRouter("/member/content", &admin.MemberContent{}),
		beego.NSRouter("/member/vip", &admin.MemberVip{}),
		beego.NSRouter("/member/vip_add", &admin.MemberVipAE{}),
		beego.NSRouter("/member/vip_edit", &admin.MemberVipAE{}),
		beego.NSRouter("/member/vip_order", &admin.MemberVipOrder{}),
		beego.NSRouter("/member/money", &admin.MemberMoney{}),
		beego.NSRouter("/member/money_export", &admin.MemberMoneyExport{}),
		beego.NSRouter("/member/integral", &admin.MemberIntegral{}),
		beego.NSRouter("/member/vipexport", &admin.MemberVipExport{}),
		beego.NSRouter("/member/business", &admin.MemberBusiness{}),
		beego.NSRouter("/member/business_add", &admin.MemberBusinessAE{}),
		beego.NSRouter("/member/business_edit", &admin.MemberBusinessAE{}),
		beego.NSRouter("/member/business_content", &admin.MemberBusinessContent{}),
		beego.NSRouter("/member/business_del", &admin.MemberBusinessDel{}),
		beego.NSRouter("/member/business_del_customer", &admin.MemberBusinessDelCustomer{}),
		//店铺管理
		beego.NSRouter("/shop/index", &admin.Shop{}),
		beego.NSRouter("/shop/area", &admin.ShopArea{}),
		beego.NSRouter("/shop/area_add", &admin.ShopAreaAE{}),
		beego.NSRouter("/shop/area_edit", &admin.ShopAreaAE{}),
		beego.NSRouter("/shop/add", &admin.ShopAE{}),
		beego.NSRouter("/shop/edit", &admin.ShopAE{}),
		beego.NSRouter("/shop/apply", &admin.ShopApply{}),
		beego.NSRouter("/shop/apply_push", &admin.ShopApplyPush{}),
		beego.NSRouter("/shop/apply_censoring", &admin.ShopApplyCensoring{}),
		beego.NSRouter("/shop/apply_detail", &admin.ShopApplyDetail{}),
		beego.NSRouter("/shop/content", &admin.ShopContent{}),
		beego.NSRouter("/shop/order", &admin.Order{}),
		beego.NSRouter("/shop/column", &admin.Column{}),
		beego.NSRouter("/shop/column_add", &admin.ColumnAE{}),
		beego.NSRouter("/shop/column_edit", &admin.ColumnAE{}),
		beego.NSRouter("/shop/product", &admin.Product{}),
		// beego.NSRouter("/shop/product_column", &admin.ProductAE{}),
		//品牌管理
		beego.NSRouter("/brand/index", &admin.Brand{}),
		beego.NSRouter("/brand/add", &admin.BrandAE{}),
		beego.NSRouter("/brand/edit", &admin.BrandAE{}),
		beego.NSRouter("/brand/content", &admin.BrandContent{}),
		beego.NSRouter("/brand/classify", &admin.BrandClassify{}),
		beego.NSRouter("/brand/classify_add", &admin.BrandClassifyAE{}),
		beego.NSRouter("/brand/classify_edit", &admin.BrandClassifyAE{}),
		//产品管理
		beego.NSRouter("/product/index", &admin.Product{}),
		beego.NSRouter("/product/new", &admin.ProductNew{}),
		beego.NSRouter("/product/add", &admin.ProductAE{}),
		beego.NSRouter("/product/edit", &admin.ProductAE{}),
		beego.NSRouter("/product/content", &admin.ProductContent{}),
		beego.NSRouter("/product/column", &admin.Column{}),
		beego.NSRouter("/product/column_add", &admin.ColumnAE{}),
		beego.NSRouter("/product/column_edit", &admin.ColumnAE{}),
		beego.NSRouter("/product/column_content", &admin.ColumnContent{}),
		beego.NSRouter("/product/spec_add", &admin.ProductSpecAE{}),
		beego.NSRouter("/product/spec_edit", &admin.ProductSpecAE{}),
		beego.NSRouter("/product/parameter", &admin.ProductParameterAE{}),
		beego.NSRouter("/product/attribute_column_add", &admin.ProductAttributeColumnAE{}),
		beego.NSRouter("/product/attribute_column_edit", &admin.ProductAttributeColumnAE{}),
		beego.NSRouter("/product/attribute", &admin.ProductAttribute{}),
		beego.NSRouter("/product/evaluation", &admin.ProductEvaluation{}),
		beego.NSRouter("/product/integral", &admin.ProductIntegral{}),
		beego.NSRouter("/product/integral_add", &admin.ProductIntegralAE{}),
		beego.NSRouter("/product/integral_edit", &admin.ProductIntegralAE{}),
		beego.NSRouter("/product/integral_content", &admin.ProductIntegralContent{}),
		beego.NSRouter("/product/integral_get", &admin.ProductIntegralGet{}),
		beego.NSRouter("/product/copy", &admin.ProductCopy{}),
		beego.NSRouter("/product/statistics", &admin.ProductStatistics{}),
		beego.NSRouter("/product/add_excel", &admin.ProductAddExcel{}),
		beego.NSRouter("/product/struct", &admin.ProductStruct{}),
		beego.NSRouter("/product/struct_add", &admin.ProductStructAE{}),
		beego.NSRouter("/product/struct_edit", &admin.ProductStructAE{}),
		beego.NSRouter("/product/struct_import", &admin.ProductStructImport{}),
		beego.NSRouter("/product/struct_export", &admin.ProductStructExport{}),
		beego.NSRouter("/product/struct_imgs", &admin.ProductStructImg{}),
		beego.NSRouter("/product/export_imgs", &admin.ProductImgExport{}),
		beego.NSRouter("/products/all_export", &admin.ProductsAllExport{}),
		beego.NSRouter("/product/brand_classify", &admin.ProductBrandClassify{}),
		beego.NSRouter("/product/zipexport", &admin.ProZipExport{}),
		//订单管理
		beego.NSRouter("/order/index", &admin.Order{}),
		beego.NSRouter("/order/gbuy_index", &admin.GbuyOrder{}),
		beego.NSRouter("/order/finance", &admin.Finance{}),
		beego.NSRouter("/order/excel", &admin.OrderExcel{}),
		beego.NSRouter("/orders/excel", &admin.OrdersExcel{}),
		beego.NSRouter("/order/driver", &admin.OrderDriver{}),
		beego.NSRouter("/order/return_outofstock", &admin.OrderReturnOutofstock{}),
		beego.NSRouter("/order/edit", &admin.OrderEdit{}),
		beego.NSRouter("/order/send", &admin.OrderSend{}),
		beego.NSRouter("/order/content", &admin.OrderContent{}),
		beego.NSRouter("/order/return", &admin.OrderReturn{}),
		beego.NSRouter("/order/return_agree", &admin.OrderReturnAgree{}),
		beego.NSRouter("/order/return_check", &admin.OrderReturnCheck{}),
		beego.NSRouter("/order/return_money", &admin.OrderReturnMoney{}),
		beego.NSRouter("/order/shopcar_del", &admin.OrderShopcarDel{}),
		beego.NSRouter("/order/shopcar_add", &admin.OrderShopcarAdd{}),
		beego.NSRouter("/order/shopcar_change", &admin.OrderShopcarChange{}),
		beego.NSRouter("/order/statistics", &admin.OrderStatistics{}),
		beego.NSRouter("/order/export_imgs", &admin.OrderExportImg{}),
		beego.NSRouter("/order/interface", &admin.OrderInterface{}),
		// beego.NSRouter("/wx_refund_callback", &admin.Wx_Refund_Callback{}, "*:CallBack"),
		//新闻管理
		beego.NSRouter("/news/index", &admin.News{}),
		beego.NSRouter("/news/add", &admin.NewsAE{}),
		beego.NSRouter("/news/edit", &admin.NewsAE{}),
		beego.NSRouter("/news/content", &admin.NewsContent{}),
		beego.NSRouter("/news/column", &admin.Column{}),
		beego.NSRouter("/news/column_add", &admin.ColumnAE{}),
		beego.NSRouter("/news/column_edit", &admin.ColumnAE{}),
		beego.NSRouter("/novice/course", &admin.NoviceCourse{}),
		beego.NSRouter("/novice/course_add", &admin.NoviceCourseAE{}),
		beego.NSRouter("/novice/course_edit", &admin.NoviceCourseAE{}),
		beego.NSRouter("/novice/column", &admin.NoviceColumn{}),
		beego.NSRouter("/novice/column_add", &admin.NoviceColumnAE{}),
		beego.NSRouter("/novice/column_edit", &admin.NoviceColumnAE{}),
		//活动管理
		beego.NSRouter("/active/coupon", &admin.ActiveCoupon{}),
		beego.NSRouter("/active/coupon_add", &admin.ActiveCouponAE{}),
		beego.NSRouter("/active/coupon_edit", &admin.ActiveCouponAE{}),
		beego.NSRouter("/active/gbuy", &admin.ActiveGbuy{}),
		beego.NSRouter("/active/gbuy_ret", &admin.ActiveGbuyRet{}),
		beego.NSRouter("/active/gbuy_join", &admin.ActiveGbuyJoin{}),
		beego.NSRouter("/active/gbuy_add", &admin.ActiveGbuyAE{}),
		beego.NSRouter("/active/gbuy_edit", &admin.ActiveGbuyAE{}),
		beego.NSRouter("/active/gbuy_push", &admin.ActiveGbuyPush{}),
		beego.NSRouter("/active/gbuy_end", &admin.ActiveGbuyEnd{}),

		beego.NSRouter("/active/sales", &admin.ActiveSales{}),
		beego.NSRouter("/active/sales_add", &admin.ActiveSalesAE{}),
		beego.NSRouter("/active/sales_edit", &admin.ActiveSalesAE{}),
		beego.NSRouter("/active/sales_end", &admin.ActiveSalesEnd{}),
		//解决方案
		beego.NSRouter("/program/index", &admin.Program{}),
		beego.NSRouter("/program/add", &admin.ProgramAE{}),
		beego.NSRouter("/program/edit", &admin.ProgramAE{}),
		//首页板块
		beego.NSRouter("/program/indexblock", &admin.IndexBlock{}),
		beego.NSRouter("/indexBlock/add", &admin.IndexBlockAE{}),
		beego.NSRouter("/indexBlock/edit", &admin.IndexBlockAE{}),
		//公司介绍
		beego.NSRouter("/page/index", &admin.Page{}),
		beego.NSRouter("/page/add", &admin.PageAE{}),
		beego.NSRouter("/page/edit", &admin.PageAE{}),
		beego.NSRouter("/page/content", &admin.PageContent{}),
		beego.NSRouter("/page/column", &admin.Column{}),
		beego.NSRouter("/page/column_add", &admin.ColumnAE{}),
		beego.NSRouter("/page/column_edit", &admin.ColumnAE{}),
		//系统设置
		beego.NSRouter("/systems/index", &admin.System{}),
		beego.NSRouter("/systems/permission", &admin.SystemPermission{}),
		beego.NSRouter("/systems/permission_add", &admin.SystemPermissionAE{}),
		beego.NSRouter("/systems/permission_edit", &admin.SystemPermissionAE{}),
		beego.NSRouter("/systems/login", &admin.SystemLogin{}),
		beego.NSRouter("/systems/service", &admin.SystemService{}),
		beego.NSRouter("/systems/service_add", &admin.SystemServiceAE{}),
		beego.NSRouter("/systems/service_edit", &admin.SystemServiceAE{}),
		beego.NSRouter("/systems/service_del", &admin.SystemServiceDel{}),
		beego.NSRouter("/systems/admin", &admin.SystemAdmin{}),
		beego.NSRouter("/systems/admin_add", &admin.SystemAdminAE{}),
		beego.NSRouter("/systems/admin_edit", &admin.SystemAdminAE{}),
		beego.NSRouter("/systems/resources", &admin.SystemResources{}),
		beego.NSRouter("/systems/area", &admin.SystemArea{}),
		beego.NSRouter("/systems/area_add", &admin.SystemAreaAE{}),
		beego.NSRouter("/systems/area_edit", &admin.SystemAreaAE{}),
		beego.NSRouter("/systems/record", &admin.SystemRecord{}),
		beego.NSRouter("/systems/admin_record", &admin.SystemRecord{}),
		beego.NSRouter("/systems/driver", &admin.SystemDriver{}),
		beego.NSRouter("/systems/driver_add", &admin.SystemDriverAE{}),
		beego.NSRouter("/systems/driver_edit", &admin.SystemDriverAE{}),
		beego.NSRouter("/systems/driver_del", &admin.SystemDriverDel{}),
		beego.NSRouter("/systems/service_list", &admin.SystemServiceList{}),
		//通用
		beego.NSRouter("/del", &admin.Del{}),
		beego.NSRouter("/delete", &admin.Delete{}),
		beego.NSRouter("/change", &admin.Change{}),
		beego.NSRouter("/column/change", &admin.ColumnChange{}),
		beego.NSRouter("/column/get", &admin.ColumnGet{}),
		beego.NSRouter("/column/get_g", &admin.ColumnGetG{}),
		beego.NSRouter("/logout", &admin.Logout{}),
	)
	beego.AddNamespace(admin)
	mobile := beego.NewNamespace("/mobile",
		beego.NSRouter("/coor", &mobile.Coor{}), //获取地理位置
		beego.NSRouter("/appdownload", &mobile.AppDownload{}),
		beego.NSRouter("/privacy_agreement", &mobile.PrivacyAgreement{}),

		//支付接口回调
		beego.NSRouter("/alipay_callback", &mobile.Alipay_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_h5_pay_callback", &mobile.Wxpay_H5_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_h5_recharge_callback", &mobile.Wxpay_H5_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_gzh_recharge_callback", &mobile.Wxpay_GZH_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_gzh_pay_callback", &mobile.Wxpay_GZH_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_xapp_recharge_callback", &mobile.Wxpay_Xapp_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_xapp_pay_callback", &mobile.Wxpay_Xapp_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_web_pay_callback", &mobile.Wxpay_Web_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_web_recharge_callback", &mobile.Wxpay_Web_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_app_pay_callback", &mobile.Wxpay_App_Callback{}, "*:CallBack"),
		beego.NSRouter("/wx_app_recharge_callback", &mobile.Wxpay_App_Callback{}, "*:CallBack"),

		//聊天 websocket
		beego.NSRouter("/ws", &mobile.Ws{}),

		/*首页*/
		beego.NSRouter("/index", &mobile.Index{}),
		beego.NSRouter("/index/newProduct", &mobile.NewProduct{}),
		beego.NSRouter("/index/indexProduct", &mobile.IndexProduct{}),
		beego.NSRouter("/index/area", &mobile.IndexArea{}),
		beego.NSRouter("/index/program", &mobile.IndexProgram{}),
		beego.NSRouter("/index/indexblock", &mobile.IndexBlock{}),
		beego.NSRouter("/index/news_content", &mobile.IndexNewsContent{}),
		beego.NSRouter("/index/news_list", &mobile.IndexNewsList{}),
		beego.NSRouter("/index/shop", &mobile.IndexShop{}),
		beego.NSRouter("/index/shopProduct", &mobile.IndexShopProduct{}),
		beego.NSRouter("/index/shopList", &mobile.IndexShopList{}),
		beego.NSRouter("/index/shop_search", &mobile.IndexShopSearch{}),
		beego.NSRouter("/index/brand", &mobile.IndexBrand{}),
		beego.NSRouter("/index/brandStreet", &mobile.IndexBrandStreet{}),
		beego.NSRouter("/index/recom", &mobile.IndexRecom{}),
		beego.NSRouter("/index/good", &mobile.IndexGood{}),
		beego.NSRouter("/index/mbuy", &mobile.IndexMbuy{}),
		beego.NSRouter("/index/shop/content", &mobile.IndexShopContent{}),
		beego.NSRouter("/index/shop_sales", &mobile.IndexShopSales{}),
		beego.NSRouter("/index/novicejoin", &mobile.IndexNoviceJoin{}),
		beego.NSRouter("/index/novicectn", &mobile.IndexNoviceCtn{}),
		//扫描条形码
		beego.NSRouter("/product_barcode", &mobile.ProductBarcode{}),
		//登入&注册
		beego.NSRouter("/login/check", &mobile.LoginCheck{}),
		beego.NSRouter("/login", &mobile.Login{}),
		beego.NSRouter("/logout", &mobile.Logout{}),
		beego.NSRouter("/loginapp", &mobile.LoginApp{}),
		beego.NSRouter("/sign", &mobile.Sign{}),
		beego.NSRouter("/bind_xapp", &mobile.BindXapp{}),
		//微信公众号登入
		beego.NSRouter("/cancel_account", &mobile.CancelAccount{}),
		beego.NSRouter("/login_wechat", &mobile.LoginWechat{}),                       //微信公众号登入
		beego.NSRouter("/login_wechat_check", &mobile.LoginWechatCheck{}),            //微信是否已经登入  发起请求
		beego.NSRouter("/login_wechat_check_oauth", &mobile.LoginWechatCheckOauth{}), //微信是否已经登入 已经登入直接设置session
		beego.NSRouter("/login_wechat_oauth", &mobile.LoginWechatOauth{}),            //微信公众号登入回调
		beego.NSRouter("/bind_wechat_oauth", &mobile.BindWechatOauth{}),              //微信公众号绑定微信
		//微信小程序
		beego.NSRouter("/login_xapp", &mobile.LoginXapp{}),            //微信小程序登入
		beego.NSRouter("/login_xapp_check", &mobile.LoginXappCheck{}), //微信小程序检查session

		beego.NSRouter("/login_app", &mobile.LoginAppWechat{}), //微信小程序登入
		//短信验证登入
		beego.NSRouter("/login/smssend", &mobile.LoginSmssend{}), //登入验证短信
		/*分类*/
		beego.NSRouter("/contact_service", &mobile.ContactService{}),
		beego.NSRouter("/column", &mobile.Column{}),
		beego.NSRouter("/column/list", &mobile.ColumnList{}),
		beego.NSRouter("/column/search", &mobile.ColumnSearch{}),
		beego.NSRouter("/column/search_result", &mobile.ColumnSearchResult{}),
		beego.NSRouter("/product/struct", &mobile.ProductStruct{}),
		beego.NSRouter("/product/struct/isshowcase", &mobile.IsProductStructShowcase{}),
		beego.NSRouter("/product/struct/showcase", &mobile.ProductStructShowcase{}),
		beego.NSRouter("/product/struct/windowcase", &mobile.ProductStructWindowcase{}),
		beego.NSRouter("/product/struct/iswindowcase", &mobile.IsProductStructWindowcase{}),
		//产品详情
		beego.NSRouter("/column/product_content", &mobile.ColumnProductContent{}),
		beego.NSRouter("/column/product_evaluate", &mobile.ColumnProductEvaluate{}),
		beego.NSRouter("/column/product_lost", &mobile.ColumnProductLost{}),
		beego.NSRouter("/column/prduct_collect", &mobile.ColumnProductCollect{}),
		/*活动*/
		beego.NSRouter("/active", &mobile.Active{}),
		beego.NSRouter("/active/gbuy", &mobile.ActiveGbuy{}),
		beego.NSRouter("/active/gbuy_help", &mobile.ActiveGbuyHelp{}),

		/*我的*/
		beego.NSRouter("/my", &mobile.My{}),
		//账户信息&安全
		beego.NSRouter("/my/info", &mobile.MyInfo{}),
		beego.NSRouter("/my/info_edit", &mobile.MyInfoEdit{}),
		beego.NSRouter("/my/info_safe", &mobile.MyInfoSafe{}),
		beego.NSRouter("/my/info_safe_changep", &mobile.MyInfoSafeChangeP{}),
		beego.NSRouter("/my/info_bind_wechat", &mobile.MyInfoBindWechat{}),
		//收货地址
		beego.NSRouter("/my/address", &mobile.MyAddress{}),
		beego.NSRouter("/my/address_add", &mobile.MyAddressAE{}),
		beego.NSRouter("/my/address_edit", &mobile.MyAddressAE{}),
		//资金
		beego.NSRouter("/my/money", &mobile.MyMoney{}),
		beego.NSRouter("/my/money_list", &mobile.MyMoneyList{}),
		beego.NSRouter("/my/money/recharge", &mobile.MyMoneyRecharge{}),
		beego.NSRouter("/my/money/getcash", &mobile.MyMoneyGetcash{}),
		//订单
		beego.NSRouter("/my/order", &mobile.MyOrder{}),
		beego.NSRouter("/my/order_detail", &mobile.MyOrderDetail{}),
		// beego.NSRouter("/my/order_return", &mobile.MyOrderReturn{}),
		beego.NSRouter("/my/order_confirm", &mobile.MyOrderConfirm{}),
		beego.NSRouter("/my/order_push", &mobile.MyOrderPush{}),
		beego.NSRouter("/my/order_return_apply", &mobile.MyOrderReturnApply{}),
		beego.NSRouter("/my/order_return_detail", &mobile.MyOrderReturnDetail{}),
		beego.NSRouter("/my/order_evaluation_add", &mobile.MyOrderEvaluationAdd{}),
		beego.NSRouter("/my/order_send", &mobile.MyOrderSend{}),
		//评价
		beego.NSRouter("/my/evaluation", &mobile.MyEvaluation{}),
		//足迹 收藏  关注
		beego.NSRouter("/my/foot", &mobile.MyFoot{}),
		beego.NSRouter("/my/collect", &mobile.MyCF{}),
		beego.NSRouter("/my/focus", &mobile.MyCF{}),
		//优惠券
		beego.NSRouter("/my/coupon", &mobile.MyCoupon{}),
		//消息
		beego.NSRouter("/my/message", &mobile.MyMessage{}),
		beego.NSRouter("/my/message_content", &mobile.MyMessageContent{}),
		//管理后台
		beego.NSRouter("/my/shop", &mobile.MyShop{}),
		beego.NSRouter("/my/driver", &mobile.MyDriver{}),
		beego.NSRouter("/my/order_manage", &mobile.MyOrderManage{}),
		//店铺后台
		beego.NSRouter("/my/myshop", &mobile.MyMyshop{}),
		beego.NSRouter("/my/shop_add", &mobile.MyShopAdd{}),
		beego.NSRouter("/my/shop_data", &mobile.MyShopData{}),
		beego.NSRouter("/my/shop_product", &mobile.MyShopProduct{}),
		beego.NSRouter("/my/shop_product_del", &mobile.MyShopProductDel{}),
		beego.NSRouter("/my/shop_order_cancle", &mobile.MyShopOrderCancle{}),
		beego.NSRouter("/my/shop_order_return", &mobile.MyShopOrderReturn{}),
		beego.NSRouter("/my/shop_order_return_pay", &mobile.MyShopOrderReturnPay{}),
		//推广,分销
		beego.NSRouter("/my/promotion", &mobile.MyPromotio{}),
		beego.NSRouter("/my/distribution", &mobile.MyPromotio{}),
		beego.NSRouter("/my/promotion_apply", &mobile.MyPromotionApply{}),
		beego.NSRouter("/my/distribution_apply", &mobile.MyPromotionApply{}),
		//发票
		beego.NSRouter("/my/invoice", &mobile.MyInvoice{}),
		//积分商城
		beego.NSRouter("/my/integral", &mobile.MyIntegral{}),
		beego.NSRouter("/my/integral_content", &mobile.MyIntegralContent{}),
		beego.NSRouter("/my/integra_rule", &mobile.MyIntegralRule{}),
		beego.NSRouter("/my/integra_list", &mobile.MyIntegralList{}),

		/*购物车*/
		beego.NSRouter("/shopcar", &mobile.ShopClassify{}),
		beego.NSRouter("/isshopcar", &mobile.IsShopClassify{}),
		// beego.NSRouter("/shopcar/classify", &mobile.ShopClassify{}),
		beego.NSRouter("/shopcar_p", &mobile.ShopcarP{}),
		beego.NSRouter("/shopcar/buy", &mobile.ShopcarBuy{}),
		beego.NSRouter("/shopcar/changenum", &mobile.ShopcarChangenum{}),
		beego.NSRouter("/shopcar/sure", &mobile.ShopcarSure{}),

		//删除
		beego.NSRouter("/del", &mobile.Del{}),
		beego.NSRouter("/test", &mobile.Test{}),
	)
	beego.AddNamespace(mobile)
	beego.Router("/", &pc.Index{})
	beego.Router("/brand", &pc.IndexBrand{})
	beego.Router("/article", &pc.IndexArticle{})
	beego.Router("/news", &pc.IndexNews{})
	beego.Router("/program", &pc.IndexProgram{})
	beego.Router("/good", &pc.IndexGood{})
	beego.Router("/indexblock", &pc.IndexBlock{})
	beego.Router("/novice", &pc.NoviceArticle{})

	beego.Router("/sign", &pc.Sign{})
	beego.Router("/login", &pc.Login{})
	beego.Router("/logout", &pc.Logout{})
	beego.Router("/login_wechat", &pc.LoginWechat{})
	beego.Router("/login_wechat_callback", &pc.LoginWechatCallback{})

	beego.Router("/del", &pc.Del{})

	beego.Router("/shopcar", &pc.Shopcar{})
	beego.Router("/isShopcar", &pc.IsShopcar{})
	beego.Router("/shopcar/excel", &pc.ShopcarExcel{})
	beego.Router("/shopcar/buy", &pc.ShopcarBuy{})
	beego.Router("/shopcar/changenum", &pc.ShopcarChangenum{})
	beego.Router("/shopcar/sure", &pc.ShopcarSure{})
	beego.Router("/shopcar/ordercheck", &pc.ShopcarOrdercheck{})

	beego.Router("/column/prduct_collect", &pc.ColumnProductCollect{})
	beego.Router("/privacyAgreement", &pc.PrivacyAgreement{})
	beego.Router("/privacyAgreement2", &pc.PrivacyAgreement{})
	beego.Router("/my", &pc.My{})

	beego.Router("/my/order", &pc.MyOrder{})
	beego.Router("/my/order_excel", &pc.MyOrderExcel{})
	beego.Router("/my/order/detail", &pc.MyOrderDetail{})
	beego.Router("/my/evaluation", &pc.MyEvaluation{})
	beego.Router("/my/order/return_apply", &pc.MyOrderReturnApply{})
	beego.Router("/my/order/evaluation", &pc.MyOrderEvaluation{})
	beego.Router("/my/order/return_detail", &pc.MyOrderReturnDetail{})

	beego.Router("/my/complate", &pc.MyComplate{})

	beego.Router("/my/foot", &pc.MyFoot{})
	beego.Router("/my/collect", &pc.MyCF{})
	beego.Router("/my/focus", &pc.MyCF{})

	beego.Router("/my/coupon", &pc.MyCoupon{})
	beego.Router("/my/integral", &pc.MyIntegral{})
	beego.Router("/my/money", &pc.MyMoney{})
	beego.Router("/my/integral_list", &pc.MyIntegralList{})
	beego.Router("/my/recharge", &pc.MyRecharge{})
	beego.Router("/my/getcash", &pc.MyMoneyGetcash{})

	beego.Router("/my/info", &pc.MyInfo{})
	beego.Router("/my/address", &pc.MyAddress{})
	beego.Router("/my/address_default", &pc.MyAddressDefault{})
	beego.Router("/my/invoice", &pc.MyInvoice{})
	beego.Router("/my/safe", &pc.MySafe{})
	beego.Router("/my/pastcsc/sword", &pc.MyPassword{})

	beego.Router("/search_all", &pc.Search{})

	beego.Router("/product/content", &pc.ProductContent{})
	beego.Router("/product/getcoupon", &pc.ProductGetcoupon{})

	beego.Router("/shop", &pc.IndexShop{})
	beego.Router("/shop_sales", &pc.IndexShopSales{})
	beego.Router("/my/order_push", &pc.MyOrderPush{})
	beego.Router("/excel/upload", &pc.ExcelUoload{})
	beego.Router("/changeShop", &pc.ChangeShop{}) //切换服务中心
	beego.Router("/relocation", &pc.Relocation{}) //定位
}
